// git包
const downLoad = require('download-git-repo')
// 动画
const ora = require('ora')

let url = 'https://github.com/YuJieHou/web.git'
let clone = true
let downGit = (name) => {
  const spinner = ora('正在拉取模板...')
  spinner.start()
  downLoad('direct:' + url, name, {
      clone
  }, err => {
      spinner.stop()
      console.log(err?err:"项目创建成功")
      process.exit(1)
  })
}
module.exports = downGit